package com.jsy.item.feign;

import com.jsy.common.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
@FeignClient("item-web")
@RequestMapping("/page")
public interface PageFeign {
    /**
     * 根据商品spu id生成静态页面
     * @param id
     * @return 操作结果
     */
    @RequestMapping("createHtml/{id}")
    Result createHtml(@PathVariable Long id);

    /**
     * 根据商品spu id删除静态页面
     * @param id
     * @return 操作结果
     */
    @RequestMapping("deleteHtml/{id}")
    Result deleteHtml(@PathVariable Long id);


}
